//
//  ConstDefine.h
//  KidReading
//
//  Created by telen on 14/12/4.
//  Copyright (c) 2014年 刘赞黄Telen. All rights reserved.
//

/***** sdk屏蔽宏 ****/
#define JReaderSDKControl


#ifndef KidReading_ConstDefine_h
#define KidReading_ConstDefine_h

#define JR_PJ
typedef long long LongLong;

typedef enum : NSUInteger {
    DevicesTypes_iPad = 0,
    DevicesTypes_iPhone = 1,
} DevicesTypes;

typedef enum : NSUInteger {
    BookScreenType_none = 0,
    BookScreenType_vertical,
    BookScreenType_horizontal,
} BookScreenType;

//#define Net 4 //开发环境内网
//#define Net 1 //内网测试
//#define Net 2 //外网test
#define Net 3 //外网域名
#if Net == 1
#define __NetSign @" (lan)"
#define __BaiduPushMode BPushModeDevelopment
#define __URL_Base_  @"http://10.135.195.180:8086"
#define __UMSAPPKey_ @"5bc50e2b30a8621cc28db292c6e72b64" //客户端统计key 由服务端生成
#define __AddImagScale_BookCover @""
//#define __Ser2_0_URL_Base_ @"http://10.135.195.150:8787" //Server2.0
#define __AccountURL WY3SDK_UrlType_LanTest
#define __WYC_URL WYCenterNetType_lan
#define __Game_URL _Game_URL_Lan_
#define __Ser3_0_URL_Base_ @"http://10.135.195.150:9797" //Server3.0
//#define __Ser3_0_URL_Base_ @"http://10.135.192.84:8282" //Server3.0
#define __DBFileName @"joyReader3_6_5_lan.db"
#define __DBFileName_debug @"joyReader3_6_5_lan_debug.db"
#define __DBFileName_record @"joyReading3_lan.db"
#define __DBFileName_record_debug @"joyReading3_lan_debug.db"
#define __DBFileName_FollowReading @"joyReader_followReading_lan.db"
#define __DBFileName_FollwoReading_debug @"joyReader_followReading_lan_debug.db"
#define __DBFileName_MergeMineAndFavor @"joyReader3_6_5_MergeBooks_lan.db"
#define __DBFileName_MergeMineAndFavor_debug @"joyReader3_6_5_MergeBooks_debug_lan_debug.db"

#elif Net == 2
#define __NetSign @" (wlan_test)"
#define __BaiduPushMode BPushModeDevelopment
//#define __URL_Base_  @"http://115.28.227.71"
#define __URL_Base_  @"http://testapi-joyreader.wawayaya.com"
#define __UMSAPPKey_ @"2a33b7d842ca645e6fb91bc951fb66c4" //客户端统计key 由服务端生成
#define __AddImagScale_BookCover @""
#define __Ser2_0_URL_Base_ @"https://testapi2-joyreader.wawayaya.com" //Server2.0
#define __AccountURL WY3SDK_UrlType_PublicTest
#define __WYC_URL WYCenterNetType_wlanTest
#define __Game_URL _Game_URL_WlanTest_
#define __Ser3_0_URL_Base_ @"https://testapi3-joyreader.wawayaya.com" //Server3.0
#define __DBFileName @"joyReader3_6_5_wlantest.db"
#define __DBFileName_debug @"joyReader3_6_5_wlantest_debug.db"
#define __DBFileName_record @"joyReading3_wlantest.db"
#define __DBFileName_record_debug @"joyReading3_wlantest_debug.db"
#define __DBFileName_FollowReading @"joyReader_followReading_wlantest.db"
#define __DBFileName_FollwoReading_debug @"joyReader_followReading_wlantest_debug.db"
#define __DBFileName_MergeMineAndFavor @"joyReader3_6_5_MergeBooks_wlantest.db"
#define __DBFileName_MergeMineAndFavor_debug @"joyReader3_6_5_MergeBooks_debug_wlantest_debug.db"

#elif Net == 3
#define __NetSign @""
#define __BaiduPushMode BPushModeProduction
#define __URL_Base_  @"http://api-joyreader.wawayaya.com"
#define __UMSAPPKey_ @"aecb5bcdc6cccf803048e4d2e121689f" //客户端统计key 由服务端生成
#define __AddImagScale_BookCover @""
#define __Ser2_0_URL_Base_ @"http://api2-joyreader.wawayaya.com" //Server2.0
#define __AccountURL WY3SDK_UrlType_Public
#define __WYC_URL WYCenterNetType_pro
#define __Game_URL _Game_URL_WlanPro_
#define __Ser3_0_URL_Base_ @"https://api3-joyreader.wawayaya.com" //Server3.0
#define __DBFileName @"joyReader3_6_5.db"
#define __DBFileName_debug @"joyReader3_6_5_debug.db"
#define __DBFileName_record @"joyReading3.db"
#define __DBFileName_record_debug @"joyReading3_debug.db"
#define __DBFileName_FollowReading @"joyReader_followReading.db"
#define __DBFileName_FollwoReading_debug @"joyReader_followReading_debug.db"
#define __DBFileName_MergeMineAndFavor @"joyReader3_6_5_MergeBooks.db"
#define __DBFileName_MergeMineAndFavor_debug @"joyReader3_6_5_MergeBooks_debug.db"

#elif Net == 4
#define __NetSign @"(devLan)"
#define __BaiduPushMode BPushModeDevelopment
#define __URL_Base_  @"http://10.135.195.150:8787"
#define __UMSAPPKey_ @"5bc50e2b30a8621cc28db292c6e72b64" //客户端统计key 由服务端生成
#define __AddImagScale_BookCover @""
#define __AccountURL WY3SDK_UrlType_LanTest
#define __WYC_URL WYCenterNetType_devlan
#define __Game_URL _Game_URL_DevLan_
#define __Ser3_0_URL_Base_ @"http://10.135.195.150:8787" //Server3.0
#define __DBFileName @"joyReader3_6_5_devlan.db"
#define __DBFileName_debug @"joyReader3_6_5_devlan_debug.db"
#define __DBFileName_record @"joyReading3_devlan.db"
#define __DBFileName_record_debug @"joyReading3_devlan_debug.db"
#define __DBFileName_FollowReading @"joyReader_followReading_devlan.db"
#define __DBFileName_FollwoReading_debug @"joyReader_followReading_devlan_debug.db"
#define __DBFileName_MergeMineAndFavor @"joyReader3_6_5_MergeBooks_devlan.db"
#define __DBFileName_MergeMineAndFavor_debug @"joyReader3_6_5_MergeBooks_devlan_debug.db"

#endif


#define __URL_PortBooks_ @"/books_and.php"
#define __URL_PortLogin_ @"/api/user/login"
#define __URL_PortLogin_oauth_ @"/api/user/oauthlogin"
#define __URL_PortRegister_ @"/api/user/register"
#define __URL_PortCreateChild_ @"/api/user/createchild" //get ?userId=71
#define __URL_PortGetUserInfo_ @"/api/user/info"//get ?userId=71
#define __URL_PortChangePassWord_ @"/api/user/updatepassword"
#define __URL_PortBuyHtml_ @"/html/buyvip/buy.php"
//v2
#define __URL_PortBuyJSP_ @"/pay/page?"//userId,platform,app_ver
#define __URL_PortBuyJSP_trans @"/api/pay/appstoreCallback"//userId,purchase_type,receipt,iap_endpoint,transaction_id
#define __URL_PortBooks_Dict @"/dictionary/common/word" //@"/api/dictionary/common/word" //取词

//3D touch
//#define __3D_Home @"JR.UITouchText.home"
#define __3D_booklib @"JR.UITouchText.booklib"
#define __3D_aboutme @"JR.UITouchText.aboutme"
#define __3D_Teacher @"JR.UITouchText.teacher"
#define __3D_Parents @"JR.UITouchText.parents"
#define __3D_Search @"JR.UITouchText.search"
#define __3D_Scan @"JR.UITouchText.ScanCode"

#define __URL_Base_UploadImageGet ([DataProcessing shareSingle].avatar_host)


#define __salt @"P)*^$g093G%^&mL:#po3" //通讯加密串
#define __SoundFastRatio_ 50 //读书快慢定义
#define __SoundSlowerRatio_ -25 //读书快慢定义
#define __NetTimeOut_ 12 //秒
#define __PageScaleMax_ 2//书页的最大放大比例
#define __barAlpha 0.98 //topBar透明度
#define __circlePage_ NO //是否开启环形阅读 YES NO
//#define __DictOutTime_ 0 //天 //开启定义，强制执行本地过期逻辑
#define __AppID_ @"961516968"//读者@"759706888" 爱读HD@"961516968"
#define __AESKey @"TelenReading"//加密串
#define __BaseBackColor [UIColor colorWithRed:124/255.0 green:132/255.0 blue:197/255.0 alpha:1]
//
//MapViewColor
#define __BaseBackColor1 [UIColor colorWithRed:1 green:1 blue:1 alpha:1]//高亮框底色
#define __BaseBackColor2 [UIColor colorWithRed:93/255.0 green:102/255.0 blue:164/255.0 alpha:1]//默认框底色
#define __BaseBackColor3 [UIColor colorWithRed:124/255.0 green:132/255.0 blue:197/255.0 alpha:__barAlpha]//View底色
#define __BaseBackColor4 [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1]//默认文字色
#define __BaseBackColor5 __BaseBackColor2 //高亮文字色
//
#define __PinYinFontName @"HansPhonic80"
#define __SpeakerEnglishFontName @"HansPhonic60"
#define __MarkerFeltFontName @"MarkerFelt-Wide"
#define __DFPFontName @"DFPShaoNvW5" //FZKTJW--GB1-0
#define __KaiTiFontName @"FZKai-Z03S"
#define __Arial @"Arial"
#define __Arial_Bold @"ArialHebrew-Bold"


#define __WYDEC_Code @"ABCabc01"
#define __KeyForDB_  @"telen^-!QbA#H&ehH@8QDp1-^telen"
#define __TimeStampInterval 5.0f //分
#define __GridMoreBooks_Limit 5 //首页每个书架最多显示书本数量


#define __KeyForDB_ON_  1  //定义开启数据库加密
#define __Debug_Net 0 //开启网络日志log
#define __Debug_Net_Error 0 //开启网络错误日志log
#define __PaySandBox 0//开启沙盒支付
#define __IsToKeepLocalZip 0//开启解压后保留zip包
#define __Debug_CloseAES 0//开启关闭加密
#define __ShowWaiting_Sub 0//开启展示菊花
#define __Debug_Net_Get  0//开启get协议
#define __Debug_DataProcessing 0//开启数据处理log
#define __Debug_File 0//开启本地文件路径log
#define __Debug_BooksFileReading 0 //开启书本文件读取log
#define __Debug_is_dealloced_log 0 //开启 log打印  dealloc
#define __Debug_is_dealloced_log_2 0 //开启 log打印  dealloc 大量的
#define __Debug_playError 0 //开启 弹出播放错误
#define __Debug_DBData_Check 0 //开启 DB_数据诊断
#define __Debug_BookID_Grid 0 //开启subtitle 显示bookid_girid
#define __Debug_ProductId_iap 0//开启产品ID存在校验显示
#define __EventDebug 0 //开启事件日志
#define __Debug_CancelTask 0 //取消的网络接口
#define __Debug_Push 0 //Push的Log
#define __Debug_randomIdfv 0 //随机生成idfv
#define __Debug_JSLog 0 //开启jslog
#define __Debug_noceControl 0//是否开启一次性控制
#define __Debug_unlockDevice 0 //是否不锁定设备
#define __Debug_FollowReadingDataStore 0 //是否存储跟读评测数据
#define __Debug_TLNetConsole 0 //打开网络调试模块（双指长按空白，弹出日志模块）
#define __Debug_TLFileBrowser 0 //打开本地文件夹浏览模块（单指，连续三击唤起模块）
#define __Debug_TLFileBrowserBook 0 //直接到款图书目录（取消下载长按，阅读器长按，打开图书目录）

//frameWork
#import <MediaPlayer/MediaPlayer.h>
#import <CoreSpotlight/CoreSpotlight.h>

//libs
#import "JRZipArchive.h"
#import "JRASIHTTPRequest.h"
#import "JRASIFormDataRequest.h"
//#import "ASINetworkQueue.h"
#import "WaitingShow.h"
#import "JRSDWebImageManager.h"
#import "UIImageView+JRWebCache.h"
#import "UIButton+JRWebCache.h"
#import "JRSDImageCache.h"
#import "AFViewShaker.h"
#import "JRiCarousel.h"
#import "PopWebView.h"
#import "VCTransitions.h"
#import "RNCachingURLProtocol.h"
#import "JRFMDB.h"
#import "NetRequestWithCahce.h"
#import "JRMJExtension.h"
#import "JRAFNetworking.h"
#import "UIView+Telen.h"
#import "TLBubbleView.h"
//#import "CardGameHeader.h"
#import "WYCryptDES.h"
#import "VerticallyAlignedLabel.h"
#import "JRReachability.h"
#import "TLReachability.h"
#import "TLRemindLocalPush.h"
#import "TLEventView.h"
#import "TLPaintView.h"
#import "TLScrapView.h"
#import "JRMasonry.h"
#import "GlowLayer.h"
#import "TLRecorderMp3.h"
#import "TLConvertWavToMp3.h"
#import "UIImage+TLWebP.h"
//#import "MJRefresh.h"
#import "YSCameraManager.h"
#import "JRASRManager.h"
#import "ASR.h"
#import "AIActionView.h"
#import "YSFallDownEmitterView.h"
#import "TLModalView.h"
//#import "YSWeChatPayHeader.h"
#import "YSProcessView.h"
#import "ShareManager.h"
#import "ShareManager+JR.h"
#import "ZYLoadingProgress.h"
//+
#import "UIView+Debug.h"
#import "UIView+ViewBoom.h"
#import "ViewUtils.h"
#import "Lyt.h"
#import "UILabel+TLSize.h"
#import "NYXImagesKit.h"
#import "NSObject+Associated.h"
#import "NSDate+Helper.h"
#import "NSData+EncryptionAES.h"
#import "NSString+URL.h"
#import "NSString +AES256.h"
#import "UIColor+Hex.h"
#import "UINavigationController+.h"
#import "NSObject+Telen.h"
#import "UIButton+Telen.h"
#import "UITapGestureRecognizer+Telen.h"
#import "UIImage+1xTo2x.h"
#import "TLCFunction.h"
#import "UIView+CornerRadius.h"
#import "UIView+ViewShot.h"
#import "UIView+RedPoint.h"
#import "UIWindow+Telen.h"
//#import "TLFileBrowser.h"
//
#import "HansPinYin.h"
#import "StrokeViewContainer.h"
#import "UIStrokeView.h"
#import "CKLSoundStretch.h"
#import "UpYun.h"
//#import "IAPShare.h"
//#import "BaiduMobStat.h"
//#import "BPush.h"

//Net
#import "NetRequest.h"
#import "NetDownloadBooks.h"
#import "NetDownloadBooks+SeparateDown.h"
#import "NetDownSupportFiles.h"
#import "NetDownTalk.h"
#import "NetRequestWithCache_JR.h"
#import "NetGetPostsWithCache.h"
#import "NetSyncRecord.h"
#import "DB_NetFollowReading.h"
//Data
#import "CacheData.h"
#import "CacheData+SeparateDown.h"
#import "UserInfo.h"
#import "DataProcessing.h"
#import "WordsDictData.h"
#import "DataModel.h"
#import "JSDataProcessing.h"
#import "NetCacheData.h"
#import "NetRequestLimiter.h"
#import "Merge_MineAndFavor_Manager.h"
#import "WaWaYaYaRewardDefine.h"
#import "WaWaYaYaRewardManager.h"

//Cell
#import "TLMutexUIViewDelegate.h"
#import "TLGestureRecognizerDelegate.h"
#import "StatusButtonView.h"
#import "ReadView.h"
#import "ReadPageView_Memo.h"
#import "ReadPageView_Scrap.h"
#import "ReadPageView_Scrawl.h"
#import "ReadPagePopView.h"
#import "ReadFunctionPage.h"
#import "TLSoundPlayer.h"
#import "WordsView.h"
#import "TransView.h"
#import "MemoView.h"
#import "FloatBtnView.h"
#import "FloatBtnView_Pep.h"
#import "PageMapView.h"
#import "HangMenuForCover.h"
#import "CountingActivity.h"
//#import "BookCollectionCell.h"
//#import "HomeTableViewCell.h"
//#import "ADCollectionCell.h"
//#import "MoreTableCell.h"
//#import "BigCateMap.h"
#import "EmptyShow.h"
#import "JRNaviBar.h"
//#import "BannerView.h"
//#import "BannerTableViewCell.h"
//#import "ItemTypeCollectionViewCell.h"
//#import "ItemTypeTableViewCell.h"
//#import "JRToolBar.h"
//#import "SettingTableViewCell.h"
//#import "SetDetailTableViewCell.h"
//#import "ExpCollectionCell.h"
//#import "ExpTableViewCell.h"
//#import "WideCollectionCell.h"
//#import "ExpTableCell.h"
#import "ZYCircleActivity.h"
//#import "JRRankCell.h"
//#import "ExpBottleCell.h"
//#import "ExpRankCell.h"
//#import "BookHouseBooksTableViewCell.h"
//#import "BookHouseTitleTableViewCell.h"
//#import "RecommendTableViewCell.h"
//#import "CleanBookCacheCollectionViewCell.h"
#import "PhotoStyleCollectionViewCell.h"
//#import "HurdleTableViewCell.h"
//#import "KidTreeTableViewCell.h"
//#import "KidTreeBookView.h"
#import "FollowReadingTableViewCell.h"
#import "MediumFollowReadingTableViewCell.h"
#import "LargeFollowReadingTableViewCell.h"
//#import "AccountInfoTableViewCell.h"
//#import "OtherLinkTableViewCell.h"
//#import "UpTopTableViewCell.h"
//#import "HomePageTitleTableViewCell.h"
//#import "DynamicTableViewCell.h"
#import "UpTopCollectionViewCell.h"
//#import "BookshelfTableViewCell.h"
//#import "AboutMeTitleCell.h"
//#import "UserDeginCell.h"
//#import "DynamicTitleTableViewCell.h"
//#import "TalentRankTableViewCell.h"
//#import "OnlyImageCollectionViewCell.h"
//#import "StoryCardTableViewCell.h"
//#import "StoryCardCollectionViewCell.h"
#import "FuncBottleCollectionViewCell.h"
//#import "DesignCollecitonCell.h"
//#import "FRecomendTbCell.h"
//#import "FRecomendCollectionCell.h"
#import "ReadWindow.h"
//#import "TiredStyleTableViewCell.h"
//#import "OrderInquiryTableViewCell.h"
//#import "AudioSimpleView.h"

//VC
#import "AppDelegate.h"
#import "BaseViewController.h"
#import "IHBaseViewController.h"
#import "ReadBookVOrH_VC.h"
//#import "MyBookHomeViewController.h"
//#import "ThemeViewController.h"
//#import "SearchViewController.h"
//#import "JRRankViewController.h"
//#import "JRFilterViewController.h"
//#import "FilterResultViewController.h"
//#import "SearchAndFilterViewController.h"
//#import "JRSingelBookViewController.h"
//#import "DaliySignViewController.h"
//#import "SignCheckViewController.h"
//#import "PublishHomeViewController.h"
//#import "PublishInfoViewController.h"
//#import "PublishListViewController.h"
//#import "OrderInquiryViewController.h"
//#import "AudioViewController.h"
//
#import "PopBaseViewController.h"
#import "JSB_popWebViewController.h"
//
//#import "BRootViewController.h"
//#import "THNavigationController.h"
#import "THBaseViewController.h"
//#import "RootViewController.h"
//#import "LibraryViewController.h"
//#import "HomePageViewController.h"
//#import "AboutMeViewController.h"
//#import "UserDesignViewController.h"
//#import "UserGrowthViewController.h"
#import "WebViewController.h"
#import "NoNaviWebViewController.h"
//#import "ExploreViewController.h"
//#import "MoreBooksViewController.h"
#import "MoreBubbleViewController.h"
//#import "TopBarBubbleViewController.h"
//#import "SeriesViewController.h"
//#import "SettingViewController.h"
//#import "SetDetailViewController.h"
#import "PopWebViewController.h"
#import "InputViewController.h"
#import "ToolChooseViewController.h"
//#import "CleanBookCacheViewController.h"
#import "FollowReadingViewController.h"
//#import "SocialListViewController.h"
//#import "VIPExchangeViewController.h"
//#import "InviteFriendViewController.h"
//#import "FollowRecommendViewController.h"
//#import "BookInfoViewController.h"
//
#import "TakePhotoNavigationViewController.h"
#import "TakePhotoViewController.h"
#import "HandlePhotoViewController.h"
//
//#import "KidReadingTreeViewController.h"
#import "ActivityBubbleViewController.h"
//#import "HomePagePopUpViewController.h"
//#import "TalentRankViewController.h"
//#import "StoryCardListViewController.h"
//#import "StoryCardInfoViewController.h"
//#import "MoreActivitionViewController.h"
#import "GetStoryCardPopUpViewController.h"
//#import "AboutMeNavigationController.h"
//#import "CodeScanViewController.h"
//#import "TiredRemindViewController.h"

//Talk
#import "TalkViewController.h"
#import "ASMediaFocusManager.h"
#import "ASMediaFocusController.h"

//DB
#import "DBHelper.h"
#import "DBHelper+Reader.h"
#import "DBHelper+Reading.h"
#import "DBHelper+FollowReading.h"
#import "DBHelper+Merge_MineAndFavor.h"
#import "DBNetWork.h"
#import "DBLocalWork.h"
//#import "DBMJExtension.h"
#import "DBReadInfoLogc.h"

//Account
//#import "WY3SDKHeader.h"

//vc
//+
#import "UIAlertView+TLBlock.h"
//#import "BaseViewController+JR.h"
//#import "DataProcessing+JRIAP.h"
//#import "RootViewController+ModalGuidence.h"

//extra
#import "TLMobStatKeyDefine.h"
#import "RootViewController.h"
#import "WY_KeychainUtils.h"
#import "WY3SDKLogin.h"


#pragma mark- TLLOG
#define TLLOG_ON  //定义即开启TLLOG的打印功能。
//TLLOG
#define __TLLOG(s, ...) \
NSLog(@"%@",[NSString stringWithFormat:(s), ##__VA_ARGS__])
#ifdef TLLOG_ON
#define TLLOG(...) __TLLOG(__VA_ARGS__)
#else
#define TLLOG(...) do {} while (0)
#endif

//EventDebug
#if __EventDebug
#define EventDebug() TLLOG(@"line:%d  <<<  %s \n",__LINE__,__FUNCTION__)
#define EventDebugLog(id,...) TLLOG(@"line:%d  <<<  %s  >>>  %@ \n",__LINE__,__FUNCTION__,[NSString stringWithFormat:(id), ##__VA_ARGS__])
#else
#define EventDebug() do{} while(0)
#define EventDebugLog(...) do{} while(0)
#endif


//
#endif
